﻿using System;
using System.Collections.Generic;
using System.Text;

namespace VectorMath
{
    public class Pnt3I
    {
        public int x;
        public int y;
        public int z;

        public Pnt3I(int x, int y, int z)
        {
            this.x = x;
            this.y = y;
            this.z = z;
        }

        public override bool Equals(object obj)
        {
            if (obj is Pnt3I)
                return Equals((Pnt3I)obj);
            else
                return base.Equals(obj);
        }

        public bool Equals(Pnt3I other)
        {
            return this.x == other.x && this.y == other.y && this.z == other.z;
        }

        public override int GetHashCode()
        {
            return (((x.GetHashCode() << 7) + y.GetHashCode()) << 7) + z.GetHashCode();
        }
    }
}
